from django.urls import path
from rest_framework.routers import SimpleRouter
from rest_framework.routers import DefaultRouter
from .views import *
urlpatterns=[
    path('classes/<pk>/member/' , ClassesMemberViewSet.as_view({'post':'add_member'}))
]
router =DefaultRouter() #实例化，实例化一个默认路由器对象
router.register('classes',ClassesViewSet)
urlpatterns +=router.urls
